package com.pojo;

public class Stu {
    private int id;
    private String name;
    private int sid;
    private String major;
    private String cla;
    private int age;
    private String sex;


    public Stu() {
    }

    public Stu(int id, String name, int sid, String major, String cla, int age, String sex) {
        this.id = id;
        this.name = name;
        this.sid = sid;
        this.major = major;
        this.cla = cla;
        this.age = age;
        this.sex = sex;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getCla() {
        return cla;
    }

    public void setCla(String cla) {
        this.cla = cla;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Stu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sid=" + sid +
                ", major='" + major + '\'' +
                ", cla='" + cla + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
